﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="ProductionStorageRDLC.aspx.cs" Inherits="Ewts.RDLC.ProductionStorageRDLC" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">
    function GoodsInfo(goodscode, storageno, flag) {
        var time1 = $(".date1").val() + " " + $(".txtStartH").val() + ":" + $(".txtStartM").val() + ":" + $(".txtStartH").val();
        var time2 = $(".date2").val() + " " + $(".txtEndH").val() + ":" + $(".txtEndM").val() + ":" + $(".txtEndH").val();

        var strhref = "ProductionStorageItems.aspx?goodsCode=" + goodscode;
        strhref += "&storageno=" + storageno
        strhref += "&startDate=" + time1 + "&endDate=" + time2 + "&flag=" + flag;
        strhref += "&belong=" + $(".ddlBelong").val();
        strhref += "&graphic=" + $(".ddlGraphic").val();
        location.href = strhref;
    }

    $(document).ready(function () {
        $.datepicker.regional['zh-CN'] = {
            clearText: '清除',
            clearStatus: '清除已选日期',
            closeText: '关闭',
            closeStatus: '不改变当前选择',
            prevText: '<上月',
            prevStatus: '显示上月',
            prevBigText: '<<',
            prevBigStatus: '显示上一年',
            nextText: '下月>',
            nextStatus: '显示下月',
            nextBigText: '>>',
            nextBigStatus: '显示下一年',
            currentText: '今天',
            currentStatus: '显示本月',
            monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
            monthNamesShort: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'],
            monthStatus: '选择月份',
            yearStatus: '选择年份',
            weekHeader: '周',
            weekStatus: '年内周次',
            dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
            dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
            dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
            dayStatus: '设置 DD 为一周起始',
            dateStatus: '选择 m月 d日, DD',
            dateFormat: 'yy-mm-dd',
            firstDay: 1,
            initStatus: '请选择日期',
            isRTL: false
        };
        $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
        $(".date1, .date2").datepicker({
            "dateFormat": "yy-mm-dd"
        });


        //选中事件
        $(".chkInsCleanMonth").change(function () {
            if ($(this).attr("checked") == "checked") {
                $(".dropYear").removeAttr("disabled");
                $(".dropMonth").removeAttr("disabled");
            }
            else {
                $(".dropYear").attr("disabled", "disabled");
                $(".dropMonth").attr("disabled", "disabled");
            }
        });

        $(".dropYear,.dropMonth").change(function () {
            var s = "";
            s = $(".dropYear").val() + $(".dropMonth").val();
            $(".hidcleanmonth").val(s);
        });



    });

 </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
    <div>
        <div>
            <table border="0" style="text-align:center;" cellpadding="0" cellspacing="1">
                   <tr>
                    <td style="width:100px;">
                        归属地
                    </td>
                    <td style="width:200px; text-align:left; padding-left:5px;">
                        <asp:DropDownList ID="dropBcity"  CssClass="ddlBelong" runat="server" Width="100">
                        </asp:DropDownList>
                    </td>
                     <td style="width:150px;">
                        处理地
                    </td>
                    <td>
                        <asp:DropDownList ID="dropGcity" runat="server" CssClass="ddlGraphic" Width="100">
                           </asp:DropDownList>
                    </td>
                   <td>
                        物品编码
                    </td>
                    <td>
                        <asp:TextBox ID="txtGoodsCode" runat="server" Width="100"></asp:TextBox>
                    </td>
                    <td>
                        库位
                    </td>
                    <td>
                        <asp:TextBox ID="txtStoragePos" runat="server" Width="60"></asp:TextBox>
                    </td>
                </tr>
                     <tr>
                    <td>
                       时间段
                    </td>
                    <td style= "text-align:left; padding-left:5px;" colspan="3">
                        <asp:TextBox ID="txtTime1" runat="server" Width="80" CssClass="date1"></asp:TextBox>
                        <input id="txtStartH" class="txtStartH" value="00" style="width:20px;" runat="server" />:
                        <input id="txtStartM" class="txtStartM" value="00" style="width:20px;" runat="server" />：
                        <input id="txtStartS" class="txtStartS" value="00" style="width:20px;" runat="server" />
                        起至
                         <asp:TextBox ID="txtTime2" runat="server" Width="80" CssClass="date2"></asp:TextBox>
                        <input id="txtEndH" class="txtEndH" value="23" style="width:20px;" runat="server" />:
                        <input id="txtEndM" class="txtEndM" value="59" style="width:20px;" runat="server" />:
                        <input id="txtEndS" class="txtEndS" value="59" style="width:20px;" runat="server" />止
                    </td>
		    <td style="width:200px;">&nbsp;</td>
                    <td>
                        <input id="chkInsCleanMonth" type="checkbox" class="chkInsCleanMonth" />  财务结算月</td>
                    <td colspan="2">
                        <asp:DropDownList ID="dropYear" Enabled="false" CssClass="dropYear" runat="server">
                        </asp:DropDownList>
                        <asp:DropDownList ID="dropMonth" Enabled="false" CssClass="dropMonth" runat="server">
                            <asp:ListItem>01</asp:ListItem>
                            <asp:ListItem>02</asp:ListItem>
                            <asp:ListItem>03</asp:ListItem>
                            <asp:ListItem>04</asp:ListItem>
                            <asp:ListItem>05</asp:ListItem>
                            <asp:ListItem>06</asp:ListItem>
                            <asp:ListItem>07</asp:ListItem>
                            <asp:ListItem>08</asp:ListItem>
                            <asp:ListItem>09</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                            <asp:ListItem>11</asp:ListItem>
                            <asp:ListItem>12</asp:ListItem>
                        </asp:DropDownList>                    
                    </td>
                   
                    <td>
                        <input type="hidden" value="" id="hidcleanmonth" runat="server" />
                    </td>

                   
                </tr>
   		<tr>
                    <td colspan="8"> 
                        <asp:Button ID="btnSearch" runat="server" Width="40" Text="查寻" 
                            onclick="btnSearch_Click" style="height: 21px" />
                    </td>
                </tr>    
            </table>
        </div>

        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
              <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"  
            Font-Size="8pt" InteractiveDeviceInfos="(集合)" WaitMessageFont-Names="Verdana" 
            WaitMessageFont-Size="14pt" Height="290mm" Width="200mm">
            <LocalReport ReportPath="RDLC\StorageInfo.rdlc">
            </LocalReport>
        </rsweb:ReportViewer>
    
    </div>
</asp:Content>
